<?php

require '../common.php';
$tagId =$_POST["tagId"];
$name =$_POST["name"];


query("update tag set name='$name'where id='$tagId'");
redirect("tag.php","更新成功！");
?>